/**
 * 
 */
package ui;

import java.awt.GridBagLayout;
import javax.swing.JPanel;
import javax.swing.JTextPane;
import java.awt.GridBagConstraints;

/**
 * @author nano
 *
 */
public class ViewCode extends JPanel {

    private static final long serialVersionUID = 1L;
    private JTextPane jTextPane = null;

    /**
     * This is the default constructor
     */
    public ViewCode() {
	super();
	initialize();
    }

    /**
     * This method initializes this
     * 
     * @return void
     */
    private void initialize() {
	GridBagConstraints gridBagConstraints = new GridBagConstraints();
	gridBagConstraints.fill = GridBagConstraints.BOTH;
	gridBagConstraints.gridy = 0;
	gridBagConstraints.weightx = 1.0;
	gridBagConstraints.weighty = 1.0;
	gridBagConstraints.gridx = 0;
	this.setSize(300, 200);
	this.setLayout(new GridBagLayout());
	this.add(getJTextPane(), gridBagConstraints);
    }

    /**
     * This method initializes jTextPane	
     * 	
     * @return javax.swing.JTextPane	
     */
    private JTextPane getJTextPane() {
        if (jTextPane == null) {
    	jTextPane = new JTextPane();
        }
        return jTextPane;
    }

}
